﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LeMigue.TeamPortal.Base.Biz.Interface;
using LeMigue.TeamPortal.Base.View;
using LeMigue.Scrum.Iterface.Service;
using LeMigue.Scrum.Iterface.Model;
using LeMigue.TeamPortal.Base.Service;


namespace LeMigue.TeamPortal.Base.Biz.Implement
{
    public class MemberBiz : IMemberBiz
    {
        //TODO: implementar o unity
        private IMemberService _memberService = FactoryService.MemberService;

        public IList<MemberView> List(Team team)
        {
            return _memberService.List(team).Select(m => new MemberView(m)).ToList();
        }



    }
}
